package com.aloda.service;

import com.aloda.dto.PhoneCodeDTO;
import com.aloda.vo.VerifyVO;
import jakarta.servlet.http.HttpServletRequest;

import java.io.IOException;

/**
 * 验证码服务
 * @author aloda
 * @createTime 2024/10/24 8:29
 */
public interface VerifyService {


    /**
     * 获取图形验证码
     * @return verifyVO
     */
    VerifyVO getImgCode(HttpServletRequest request) throws IOException;

    /**
     * 获取手机号验证码
     * @param phoneCodeDTO
     */
    void getPhoneCode(PhoneCodeDTO phoneCodeDTO);
}
